package file;

/**
 * @author wang hao
 * @date 2023-03-30 22:05
 */
public class Demo03 {

    public static int f(int n){
        if (n == 1){
            return 1;
        }else {
            return f(n - 1) * n;
        }
    }



    public static void main(String[] args) {
        int f = f(5);
        System.out.println(f);
    }
}
